.question-container {
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

// 问题头部
.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-shrink: 0;
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  .left-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .question-index {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    display: flex;
  }

  .type-badge {
    width: 60px;
    height: 30px;
    background-color: #ff9900;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .right-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .icon {
    width: 32px;
    height: 32px;
    color: #333;
  }
}

// 问题内容样式
.question-content {
  margin-bottom: 20px;
  

  .question-title {
    font-size: 30px;
    line-height: 1.5;
  }
}

.options-container {
  flex: 1;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f9f9f9;
  transition: background-color 0.3s;

  &.active {
    background-color: #4ea8ec; // 蓝色背景
    color: white;
  }

  &.correct {
    background-color: #72e23a; // 绿色 - 正确答案
    color: white;
  }

  &.wrong {
    background-color: #ee4043; // 红色 - 用户答错的选项
    color: white;
  }

  .full-width-radio {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    background-color: transparent;

    .nut-radio__icon {
      display: none !important; //关键：隐藏默认圆点
    }

    .nut-radio__label {
      padding-left: 0 !important; // 去掉 label 前的空白
    }
  }

  //所选样式
  .full-width-checkbox {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    background-color: transparent;

    .nut-checkbox__icon {
      display: none !important;
    }

    .nut-checkbox__label {
      padding-left: 0 !important;
    }
  }

  .option-key {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    // background-color: #e0e0e0;
    color: #333;
  }

  .option-text {

    flex: 1;
    color: inherit;
  }
}

.confirm-btn {
  margin: 20px 0;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 0;
  background-color: #fff;
  z-index: 999;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1); // 可选：加个阴影提升层级感
}

//解析的样式
.analysis-content {
  margin-top: 20px;
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}
// .analysis-user-answer {
//   margin-top: 10px;
//   font-size: 32px;
//   color: #fdc753; // 红色突出显示
//   font-weight: bold;
// }
.analysis-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 32px;
  color: #2b9cf2;
}
.analysis-comparison {
  display: flex;
  justify-content: space-between; // 左右分布
  align-items: center; // 垂直居中
  margin-top: 10px;
  padding: 10px 0;
  background-color: #f9f9f9;
  border-radius: 8px;
  font-size: 28px;

  .analysis-answer {
    color: #2b9cf2; // 蓝色突出显示正确答案
    font-weight: bold;
    flex: 1;
    text-align: left;
    padding-left: 15px;
  }

  .analysis-user-answer {
    color: #f77417; // 红色突出显示用户答案
    font-weight: bold;
    flex: 1;
    text-align: right;
    padding-right: 15px;
  }
}

// .analysis-answer {
//   white-space: pre-wrap; // 保留换行和空格
//   font-size: 32px;
//   font-weight: bold;
// }

.analysis-text {
  white-space: pre-wrap; // 保留换行和空格
  font-size: 32px;
}

.analysis-text p {
  margin-bottom: 10px;
}

.analysis-text strong {
  color: #ff4d4f;
  font-weight: bold;
}

//答题卡样式
.answer-sheet-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  .sheet-header {
    background-color: #fff;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
  }

  .sheet-body {
    display: flex;
    flex-wrap: wrap;
    background-color: #f8f8f8;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
  }

  .question-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

    &.current {
      background-color: #2b9cf2;
      color: white;
    }

    &.answered {
      background-color: #72e23a;
      color: white;
    }

    &.correct {
      background-color: #72e23a;
      color: white;
    }

    &.wrong {
      background-color: #ee4043;
      color: white;
    }
  }

  //设置图标所需的样式
  .setting-modal {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    // z-index: 9999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    // z-index: 99999;

    &.show {
      transform: translateY(0);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 20px;
    }

    .setting-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
    }
  }

  //反馈样式
  .feedback-container {
    padding: 20px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .feedback-header {
    display: flex;
    align-items: center; // 垂直居中
    justify-content: space-between; // 左右分布
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }

  .title {
    flex: 1;
    text-align: left;
  }

  .close-icon {
    width: 24px;
    height: 24px;
    color: #999;
    cursor: pointer;
  }

  .feedback-input {
    flex: 1;
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;

    &::placeholder {
      color: #bbb;
      font-style: italic;
    }

    &:focus {
      border-color: #2b9cf2;
      box-shadow: 0 0 0 2px rgba(43, 156, 242, 0.2);
    }
  }

  .word-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .feedback-actions {
    display: flex;
    gap: 12px; // 按钮之间留出间距
  }

  .feedback-actions .nut-button {
    flex: 1; // 平分宽度
    font-size: 16px;
    padding: 12px 0;
    border-radius: 8px;
  }
}

//父组件的框架样式
.answer-page {
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
// 解决单选框前面的小圆点
.full-width-radio,
.full-width-checkbox{
.nut-icon{
  display: none !important;
}
}

// .full-width-radio,
// .full-width-checkbox {
//   list-style-type: none;
//   // 隐藏 nut-ui 默认图标
//   .nut-radio__icon,
//   .nut-checkbox__icon {
//     display: none !important;
//   }

//   // 去除 label 左侧空白
//   .nut-radio__label,
//   .nut-checkbox__label {
//     padding-left: 0 !important;
//   }

//   // 彻底清除 nut-cell 的背景和边框
//   .nut-cell {
//     background: transparent !important;
//     &::after {
//       content: none !important; // 关键：移除伪元素绘制的边框/圆圈
//     }
//   }

//   // 移除 nut-cell__value 可能带来的额外样式干扰
//   .nut-cell__value {
//     background: transparent !important;
//     border: none !important;
//     box-shadow: none !important;
//   }

//   // 如果 nut-cell 内部还有其他容器（如 div.wrapper），也一并清理
//   .nut-cell__description {
//     background: transparent !important;
//   }
// }
.countdown-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px; // 与微信原生导航栏一致
  background-color: #fafcfe;
  color: rgb(23, 22, 22);
  display: flex;
  align-items: center;
  justify-content: center;
  // z-index: 999;
}
// .countdown-placeholder {
//   height: 145px; // 与倒计时组件高度一致
// }
.countdown-content {
  font-size: 32px;
  text-align: center;
}

.time {
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

//考试界面退出考试自动提交的提示
.auto-submit-tip {
  margin-top: 20px;
  text-align: center;
  font-size: 24px;
  color: #999; // 淡灰色
  padding: 10px 0;
}